#include <algorithm>
#include <iostream>
#include <vector>
#include "../material/Utils.hpp"
//
// Created by lingzhitech on 25-9-26.
//
int main() {
    std::vector<std::string> words{"abcabcabc", "jj", "awe", "applepan", "pineapple", "bat", "hello", "world"};
    auto count = std::count_if(words.begin(), words.end(), [](const auto &word) { return word.size() > 6; });

    std::cout << count << " " << make_plural(count, "word", "s") << " over 6." << std::endl;
}